# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: psykose <alice@ayaya.dev>
pkgname=py3-typing-extensions
pkgver=4.3.0
pkgrel=0
pkgdesc="Backported and Experimental Type Hints for Python 3.5+"
url="https://github.com/python/typing_extensions"
arch="noarch"
license="Python-2.0"
depends="python3"
makedepends="py3-build py3-flit-core py3-installer py3-wheel"
checkdepends="py3-tox python3-tests"
source="https://github.com/python/typing_extensions/archive/$pkgver/typing_extensions-$pkgver.tar.gz"
builddir="$srcdir/typing_extensions-$pkgver"

build() {
	python3 -m build --no-isolation --wheel
}

check() {
	tox --sitepackages -e py310
}

package() {
	python3 -m installer -d "$pkgdir" \
		dist/typing_extensions-$pkgver-py3-none-any.whl
}

sha512sums="
3c4a9073dc89e71b8027d535853d35725163961f7feeaba817e28f93b236bcae805d9b1f6e2be8e9fc3651c283b662935ba0352e5de25ff74df4dc18373e8f7a  typing_extensions-4.3.0.tar.gz
"
